package com.ytzl.demo.controller;

import com.ytzl.demo.domain.BugProject;
import com.ytzl.demo.service.BugProjectService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/project")
public class ProjectController {

    @Resource
    private BugProjectService service;

    @GetMapping("/getProject")
    @ResponseBody
    public List<BugProject> getAll(){
        return service.list();
    }
}
